@extends('ClubLeader/default.app')

@section('title','CreateClubLesson')

@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <a class="create-return" href="{{ route('clubLesson.index') }}">
                    <span><i class="fa fa-chevron-circle-left fa-2x" aria-hidden="true"></i></span>
                    <span>返回</span>
                </a>

                <div class="create">
                    <div class="create-title">添加俱乐部课程信息</div>
                    {!! Form::open(['route' => 'clubLesson.store', 'files' => true]) !!}
                    {{ csrf_field() }}
                    <div class="create-list{{ $errors->has('lesson_name')?'':'' }}">
                        {!! Form::label('lesson_name','课程名称')!!}
                        {!! Form::text('lesson_name',null)!!}
                        @if ($errors->has('lesson_name'))
                            <span class="help-block">
                                <strong>{{ $errors->first('lesson_name') }}</strong>
                            </span>
                        @endif
                    </div>
                    <div class="create-list{{ $errors->has('lesson_intro')?'':'' }}">
                        {!! Form::label('lesson_intro','课程简介') !!}
                        <div>
                            {!! Form::textarea('lesson_intro',null) !!}
                            @if ($errors->has('lesson_intro'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('lesson_intro') }}</strong>
                                </span>
                            @endif
                        </div>
                    </div>
                    <div class="create-list{{ $errors->has('lesson_price')?'':'' }}">
                        {!! Form::label('lesson_price','课程价格')!!}
                        {!! Form::text('lesson_price',null)!!}
                        @if ($errors->has('lesson_price'))
                            <span class="help-block">
                                <strong>{{ $errors->first('lesson_price') }}</strong>
                            </span>
                        @endif
                    </div>
                    <div class="create-list{{ $errors->has('lesson_star')?'':'' }}">
                        {!! Form::label('lesson_star','课程评价')!!}
                        {!! Form::text('lesson_star',null)!!}
                        @if ($errors->has('lesson_star'))
                            <span class="help-block">
                                <strong>{{ $errors->first('lesson_star') }}</strong>
                            </span>
                        @endif
                    </div>

                    <div class="create-btn">
                        {!! Form::reset('重置'); !!}
                        {!! Form::submit('添加'); !!}
                    </div>

                    {!! Form::close() !!}
                    <div id="debug"></div>
                </div>
            </div>
        </div>
    </div>
@endsection